import { message } from "antd";
import axios from "axios";
const sytRequest = axios.create({
    baseURL: "/syt"
})

sytRequest.interceptors.response.use(res => {if (res.data.code === 200)
    return res.data;
    message.error(res.data.message);
    return new Promise(() => { });
})

export default sytRequest;